import java.util.*;
public class HomeWork01{
	public static void main(String[] args) {
		int[] num={10,12,55,90};
		Scanner sc=new Scanner(System.in);
		int key=sc.nextInt();
		int index = -1;
		int[] newNum=new int[num.length+1];
		for(int i = 0; i < num.length; i++){
			if( key < num[i]){
				index = i;
				break;
			}
		}
		if(index == -1){
			index=num.length;
		}
		newNum[index]=key;
		for (int i = 0, j = 0;i<newNum.length ; i++,j++ ) {
			if(i == index){
				j--;
				continue;
			}
			newNum[i] = num[j];
		}
		for (int i = 0;i<newNum.length ; i++) {
			System.out.println(newNum[i]);
		}

	}
}